package com.defines.ming.demo.utils;

public enum FlowStatus {
    S_SAVE(1,"已保存"),S_APPROVEING(2,"审批中"),S_APPROVEED(3,"审批完成"),S_PAYED(4,"已付款");
    int id;
    String status;
    FlowStatus(int id, String status) {
        this.id=id;
        this.status=status;
    }

    public String getStatus() {
        return status;
    }

    public void getStatus(String status) {
        this.status = status;
    }

    public static FlowStatus getStatus(int id){
        for (FlowStatus flowStatus:values()){
            if (id==flowStatus.id){
                return  flowStatus;
            }
        }
        return null;
    }
}
